<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/7/27 0027
 * Time: 上午 10:40
 */

namespace App\Handler\Admin\Member\Member;


use App\Handler\Admin\AbstractCommon;
use Phoenix\Support\MsgHelper;

class Delete extends AbstractCommon {

    public function processRequest(Array & $context) {
        try{
            $this->db->beginTransaction();
            echo($this->_publicDeleteFieldByPostItem($_POST['id'], "#@__@member","member_id"));
            $this->db->commit();
        }catch (\Exception $e) {
            $this->db->rollBack();
            echo(MsgHelper::json('DB_ERROR'));
        }
    }
}